<?php

namespace Cours\QuizzBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Question
 *
 * @ORM\Table(name="question")
 * @ORM\Entity
 */
class Question
{

    /**
     * @var string
     *
     * @ORM\Column(name="Question", type="string", length=255, nullable=false)
     */
    private $question;

    /**
     * @var integer
     *
     * @ORM\Column(name="decrementation", type="integer", nullable=false)
     */
    private $decrementation;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \Cours\QuizzBundle\Entity\Quizz
     *
     * @ORM\ManyToOne(targetEntity="Cours\QuizzBundle\Entity\Quizz")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="idQuizz", referencedColumnName="id")
     * })
     */
    private $idquizz;


    /**
     * Set question
     *
     * @param string $question
     * @return Question
     */
    public function setQuestion($question)
    {
        $this->question = $question;
    
        return $this;
    }

    /**
     * Get question
     *
     * @return string 
     */
    public function getQuestion()
    {
        return $this->question;
    }
    
    /**
     * Set decrementation
     *
     * @param integer $decrementation
     * @return Question
     */
    public function setDecrementation($decrementation)
    {
        $this->decrementation = $decrementation;
    
        return $this;
    }

    /**
     * Get decrementation
     *
     * @return integer 
     */
    public function getDecrementation()
    {
        return $this->decrementation;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set idquizz
     *
     * @param \Cours\QuizzBundle\Entity\Quizz $idquizz
     * @return Question
     */
    public function setIdquizz(\Cours\QuizzBundle\Entity\Quizz $idquizz = null)
    {
        $this->idquizz = $idquizz;
    
        return $this;
    }

    /**
     * Get idquizz
     *
     * @return \Cours\QuizzBundle\Entity\Quizz 
     */
    public function getIdquizz()
    {
        return $this->idquizz;
    }
}